<include file="Public:header" />
<div id="zoneHeader">
    <h2>编辑公告</h2>
    <ul>
        <li><a href="?c={$Think.const.CONTROLLER_NAME}" class="btn">返回</a></li>
    </ul>
</div><!--/#zoneHeader-->
<div id="zoneBody" class="noFooter">
    <div id="zoneBodyContent">
        <form action="?c=News&a=doSave" id="formEdit" go="?c=News">
            <input type="hidden" name="id">
            
            <dl class="dl2Col" style="width:800px;margin:auto;">
                <dt>标题：</dt>
                <dd><input type="text" name="subject" class="fW70" /><label style="margin-left:10px"><input type="checkbox" name="is_top" value="1"/><span>置顶</span></label></dd>
                <dt>作者：</dt>
                <dd><span name="author"></span>&nbsp;</dd>
                <dt>发布时间：</dt>
                <dd><span name="create_time"></span>&nbsp;</dd>
                <dt>内容：</dt>
                <dd><textarea name="text" style="width:90%;height:100px"></textarea></dd>
            </dl><!--/.dl2Col-->
            <ul class="btnList">
                <li><button type="submit" class="btnFormEditSave">保存</button></li>
                <li><a href="?c={$Think.const.CONTROLLER_NAME}" class="btn">返回</a></li>
            </ul>
        </form>
    </div><!--/#zoneBodyContent-->
</div><!--/#zoneBody-->
<script>
$(function(){
    var record = {};
    <notempty name="record">
    record = {$record|json_encode};
    </notempty>

    new Form($('#formEdit'), new Model(record));
})
</script>
<include file="Public:footer" />
